#ifndef DialogAudience_H
#define DialogAudience_H

#include <QDialog>
#include "ui_dialogaudience.h"
#include "ui_dialogaudience.h"
#include <QString>
#include <QDate>
#include <QTextCodec>
#include <QHeaderView>
#include <QMessageBox>
#include <QFileDialog>
#include <QCloseEvent>

class DialogAudience : public QDialog
{
	Q_OBJECT

public:
	DialogAudience(QWidget *parent = 0);
	~DialogAudience();

	int time;
	int day;
	int dayOfWeek;
	int days;
	int month;
	int year;
	QDate tempDate;										// vremennaya peremennaya dati
	int countDays;

private:
	Ui::DialogAudienceClass ui;

	void sunday_background();
	void defaultWidgets();
	void dateWeek();
	void daysInMonth();

private slots:

	void audChanged();
	void yearChanged();
	void monthChanged();
	void addAud();
	void saveAud();
	void modChanged();
	void backgroundItem();
};

#endif // DialogAudience_H
